package com.gaoyi.basemodule.baseUtil;

import android.text.TextUtils;
import android.util.Patterns;

public class StringUtil {

    public static String getString(int resource) {
        return AppUtil.getContext().getResources().getString(resource);
    }

    public static String getString(int resource, Object... args) {
        return AppUtil.getContext().getResources().getString(resource, args);
    }

    public static boolean isEmpty(String text) {
        return TextUtils.isEmpty(text) || TextUtils.isEmpty(text.trim());
    }
}
